package com.lyf.design.summary.njusoftware;

/**
 * @author liyunfei
 */
public class Sample {
    
    private static class A{
        // B :
        public B methodA(){
            //---
            return new B();//
        }
    }
    private static class B{
        void methodB(){
            System.out.println("methodB...");
        }
    }
    
    public static void main(String[] args) {
        A a  = new A();
        //a.methodA().methodB();//
        B b = new B();
        b.methodB();
        
    }
    
    
    
    
}
